package net.ojbk.study.twobox.dao;

import net.ojbk.study.twobox.beans.po.Post;
import net.ojbk.study.twobox.beans.vo.SelectOption;
import org.apache.ibatis.annotations.Select;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

public interface PostMapper extends Mapper<Post> {
    @Select("SELECT COUNT(*) FROM crm_staff WHERE crm_staff.postID = #{postId}")
    public int getStaffCountByKey(int postId);
    @Select("SELECT id id, postName `name` FROM crm_post")
    public List<SelectOption> getAllPost();
}